package com.tt.entity.vo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author sugarttt
 * @version 1.0
 * @since 2023-03-07 09:53:34
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键自增id
     */
    private Integer id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 头像地址
     */
    private String avatar;


    /**
     * 邮件
     */
    private String email;


    /**
     * 角色，0为管理员，1为普通用户
     */
    private Integer role;


    /**
     * 创建时间
     */
    private LocalDateTime gmtCreated;

}
